﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WP7Contrib.Diagnostics.Test
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
            WP7Contrib.Diagnostics.RuntimeDebug.Initialize(true,true);
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);
            
        }

        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            WP7Contrib.Diagnostics.RuntimeDebug.Write("loaded");
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            WP7Contrib.Diagnostics.RuntimeDebug.Write("1");
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            WP7Contrib.Diagnostics.RuntimeDebug.Write("2");
        }

        private void button4_Click(object sender, RoutedEventArgs e)
        {
            throw new Exception("test exception");
        }
    }
}